package cn.school.thoughtworks.section1;

import java.util.*;

public class PracticeC {
    List<String> collectSameElements(List<String> collection1, Map<String,List<String>> collection2) {
        //实现练习要求，并改写该行代码。
        List<String> list = collection2.get("value");
        List<String> c = null;
        c = new ArrayList(collection1);
        c.retainAll(list);
        return c;
    }
}
